import { wechatrequest } from './API/request'

/**
 * 支付后台接口
 */
export const wxPayOpeningMemberRequest = ({ openId, userId, code }) => {
  return wechatrequest.postparams('/pay/openingMember', {
    data: {
      openId,
      userId,
      code
    }
  })
}

/**
 * 统计推送二维码数据
 */
export const insertRecommendHistory = ({ companyId, openid }) => {
  return wechatrequest.postform(`/user/insertRecommendHistory`, {
    data: { companyId, openid }
  })
}
